Outdoor images captured in bad weather often have poor qualities in terms of visibility and contrast. A simple and effective algorithm was designed to remove haze. Firstly, the spatial high-pass filtering was used to suppress the low-frequency component and enhance the edge detail, and then the contrast-stretching transformation was used to acquire an image with high dynamic range. Finally, the exposure fusion method based on Laplacian pyramid was utilized to fuse the two results above and get the defogged image. The experimental results show that the proposed method has a good performance on enhancing images that are degraded by fog, dust or underwater and it is appropriate for real-time applications.